import request from '@/utils/request'

export function listFormulaMaterial(query) {
  return request({
    url: '/formulaMaterial/list',
    method: 'get',
    params: query
  })
}

export function listAllFormulaMaterial() {
  return request({
    url: '/formulaMaterial/list-all',
    method: 'get'
  })
}

export function listMultipleLumiereFormulaMaterial(data) {
  return request({
    url: '/formulaMaterial/multiple',
    method: 'post',
    data
  })
}


export function addFormulaMaterial(query) {
    return request({
      url: '/formulaMaterial/add',
      method: 'post',
      params: query
    })
  }

  export function updateFormulaMaterial(query) {
    return request({
      url: '/formulaMaterial/update',
      method: 'put',
      params: query
    })
  }

  export function deleteFormulaMaterial(query) {
    return request({
      url: '/formulaMaterial/delete',
      method: 'delete',
      params: query
    })
  }
